tools: Implement xc_map_foreign_range(s) in terms of common helper
authorIan Campbell <ian.campbell@citrix.com>
Thu, 18 Jun 2015 10:19:09 +0000 (11:19 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 22 Jan 2016 12:23:34 +0000 (12:23 +0000)
commitee09d0a5ed068870ef2991fdc1b292b94bd1455f
tree80dff4511ead4c50908195e31dc6d4cb23db1627
parentb701ccc8ab35ff63bc4d613ec3c7bafec15aa0ee
tools: Implement xc_map_foreign_range(s) in terms of common helper

Both Linux and FreeBSD already implemented these functions using
identical helpers based on xc_map_foreign_pages. Make one copy of
these common helpers and switch all OSes to use them, even those which
previously had a specific lower level implementation of this
functionality.

This is makes two fewer low level interfaces to think about.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_foreign_memory.c
tools/libxc/xc_freebsd_osdep.c
tools/libxc/xc_linux_osdep.c
tools/libxc/xc_minios.c
tools/libxc/xc_netbsd.c
tools/libxc/xc_solaris.c